package com.think.teaching.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.think.teaching.model.ChapterAssets;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 课件 服务类
 * </p>
 *
 * @author think
 * @since 2020-08-12
 */
@Service
public interface ChapterAssetsService extends IService<ChapterAssets> {

	ChapterAssets AddChapterAssets(ChapterAssets chapterAssets);

	ChapterAssets UpdateChapterAssets(ChapterAssets chapterAssets);

	ChapterAssets GetChapterAssets(Integer id);

	List<ChapterAssets> SearchChapterAssetsWithKey(String key, Boolean withoutBan);

	IPage<ChapterAssets> ListChapterAssetsWithTagAndType(Integer count,
														 Integer page,
														 Integer courseType,
														 Integer type,
			Boolean withoutBan);

	ChapterAssets SetChapterAssetsState(Integer id, Integer state);
}
